#!/bin/bash

file="./bin/server" 

# To check if the target has execute permissions
if [[ -x "$file" ]]; then
    echo "the target has execute permissions."
else
    echo "granting the target execution permissions."
    chmod +x "$file"
fi

# Run application
$file $1
